package com.mu.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mu.domain.User;
import com.mu.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Classname TestContraller
 * @Description TODO
 * @Date 2022/11/4 11:50
 * @Created by JiangMuyun
 */
@RestController
public class TestContraller {
    @Autowired
    private UserMapper userMapper;

    @RequestMapping("show")
    public List<User> show(){
        QueryWrapper queryWrapper=new QueryWrapper();
        List list = userMapper.selectList(queryWrapper);
        return list;
    }
}
